<pre>
<?php
$url = "http://treaties.un.org/";
$str = file_get_contents($url);
echo $item["Name"];
var_dump($str);
foreach ($str as $file){
	$ext = pathinfo($file, PATHINFO_EXTENSION);
	echo '<br />' . $ext;
}
?>
</pre>